<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="liYunLong">
        你真是个天才!
    </div>
</body>
<script>
    var tools = {
        aa:null,
        $(name){
            this.aa = document.querySelector(name)
            if(!this.aa){
                return alert('找不到')
            }
            return this
        },
        setColor(color){
            this.aa.style.color = color
            return
        },
        setFontSize(size){
            this.aa.style.size = size
            return
        },
        click(zxc){
            this.aa.onclick = function(){
                alert(zxc)
            }
        }
    }
    tools.$('#liYunLong').setColor('red').setFontSize('30').click('你呀,总能给我整点花样')

</script>

</html>